package cn.xydpeng.springframework.beans.factory.support;

import cn.xydpeng.springframework.beans.BeansException;
import cn.xydpeng.springframework.core.io.Resource;
import cn.xydpeng.springframework.core.io.ResourceLoader;
import cn.xydpeng.springframework.lang.Nullable;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/13
 * @description:
 */
public interface BeanDefinitionReader {
    @Nullable
    ResourceLoader getResourceLoader();

    BeanDefinitionRegistry getRegistry();


    int loadBeanDefinitions(Resource resource) throws BeansException;

    int loadBeanDefinitions(String location) throws BeansException;
}
